#include "object3d.h"

#ifndef CSGOBJECT_H
#define CSGOBJECT_H

enum 
{
	CSG_UNION, CSG_INTERSECTION, CSG_DIFFERENCE
};

class CSGObject : public Object3D
{
public:
	CSGObject(Object3D *obj1, Object3D *obj2, int operation);
	bool intersect(const Ray &r, Hit &h, float tmin);
	bool inside(d_Vec3f point){return false;}
protected:
	int operation;
	Object3D *obj1;
	Object3D *obj2;
	Material *mat1;
	Material *mat2;
};

#endif

